# -*- coding: utf-8 -*-

from abc import ABC, abstractmethod
from selenium import webdriver

class BaseCrawler(ABC):
    def __init__(self, url):
        self.url = url
        self.driver = webdriver.Chrome()  # or any other WebDriver

    @abstractmethod
    def fetch_data(self):
        """Fetch the hot list items from the website."""
        pass

    def close(self):
        self.driver.quit()